home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib8
/
v_10_07
/
1007010b
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
254 b
|
15 lines
Listing 2 -- mblen.c
/* mblen function */
#include <stdlib.h>
/* static data */
_Mbsave _Mbxlen = {0};
int (mblen)(const char *s, size_t n)
{ /* determine length of next multibyte code */
return (_Mbtowc(NULL, s, n, &_Mbxlen));
}